<script type="text/javascript">
    function TqtjglCtrl($http, CtrlUtil) {
        var ctrl = this
        var prefix = ':root/components/manager/'
        ctrl.zzxxUrl = prefix + 'tqtjgl_zzxx.html'
        ctrl.tgbUrl = prefix + 'tqtjgl_tgb.html'
        ctrl.tyxxUrl = prefix + 'tqtjgl_tyxx.html'
        this.query = function () {
            ctrl.subCtrl.query()
        }
        this.changePage = function (arg) {
            ctrl.page = ctrl[arg]
        }
//		this.getClassInfo = function (term, target) {
//			target = target || ctrl
//			return $http.post(':root/trainee/getClassInfoList', {
//				term: term
//			}).success(function (r) {
//				target.classInfoList = r
//			})
//		}
//		$http.post(':root/term/queryTerms').success(function (r) {
//			ctrl.terms = r.content
//			ctrl.termQueryParam = ''
//			ctrl.getClassInfo(ctrl.termQueryParam)
//		})
//		CtrlUtil.loadDepartment(ctrl)
    }

</script>
<div ng-controller="TqtjglCtrl as ctrl" ng-init="ctrl.changePage('zzxxUrl')">
    <div class="panel panel-cys">
        <div class="panel-heading">
            <h3 class="panel-title">
                <span class="glyphicon glyphicon-search"></span> 信息查询
            </h3>
        </div>
        <div class="panel-body">
            <div class="container-fluid">
                <form class="form-horizontal row">
                    <div class="form-group col-md-4 remove-margin-horizontal">
                        <div class="col-md-10 col-md-offset-1">
                            <input placeholder="统计日期" datetimepicker ng-model="ctrl.tjrqQueryParam" type="text"
                                   class="form-control">
                        </div>
                    </div>
                </form>
            </div>
            <div class="row pull-right">
                <div class="col-md-12">
                    <button ng-click="ctrl.query()" type="submit" class="btn btn-cys btn-sm">
                        <span class="glyphicon glyphicon-search"></span>
                        查询
                    </button>
                    <button ng-click="ctrl.reset()" type="reset" class="btn btn-default btn-sm">
                        <span class="glyphicon glyphicon-repeat"></span>
                        重置
                    </button>
                </div>
            </div>
        </div>
    </div>
    <!-- Search area END -->
    <ul class="nav nav-tabs" role="tablist" style="margin-bottom: 10px;">
        <li ng-click="ctrl.changePage('zzxxUrl')" role="presentation" ng-class="{active:ctrl.page==ctrl.zzxxUrl}">
            <a href="javascript:;" aria-controls="home" role="tab" data-toggle="tab"> 组织信息 </a>
        </li>
        <li ng-click="ctrl.changePage('tgbUrl')" role="presentation" ng-class="{active:ctrl.page==ctrl.tgbUrl}">
            <a href="javascript:;" aria-controls="home" role="tab" data-toggle="tab"> 专兼职团干部 </a>
        </li>
        <li ng-click="ctrl.changePage('tyxxUrl')" role="presentation" ng-class="{active:ctrl.page==ctrl.tyxxUrl}">
            <a href="javascript:;" aria-controls="home" role="tab" data-toggle="tab"> 团员信息 </a>
        </li>
    </ul>

    <div class="tab-content" ng-include="ctrl.page">
    </div>
</div>